package cn.mcch.investigator.viewdelegate.impl;

import cn.mcch.investigator.R;
import cn.mcch.investigator.customview.IndexExpandableListView;
import cn.mcch.investigator.listener.OnCommonClickListener;
import cn.mcch.investigator.viewdelegate.BaseViewDelegate;
import cn.mcch.investigator.viewdelegate.IChooseCarTypeViewDelegate;

/**
 * Created by Administrator on 2016/12/20.
 */
public class ChooseCarTypeViewDelegateImpl extends BaseViewDelegate implements IChooseCarTypeViewDelegate {
    @Override
    public void initEventsListener(OnCommonClickListener l) {
        if (findViewById(R.id.iel_car_type) != null) {
            ((IndexExpandableListView) findViewById(R.id.iel_car_type)).setOnChildClickListener(l);
            ((IndexExpandableListView) findViewById(R.id.iel_car_type)).setOnItemClickListener(l);
        }
    }

}
